import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type homeResult = {
  page: any;
  result: any
};



/** 新增人才招聘 */
export const jobFairinsertrecruitment = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/recruitment/insertrecruitment"), { data });
};


/** 删除人才招聘 */
export const jobFairdelcruitment = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/recruitment/delcruitment/${userid}`));
};

/** 修改人才招聘 */
export const jobFairupdaterecruitment = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/recruitment/updaterecruitment"), { data });
};


/** 查询人才招聘 */
export const jobFairselpagerecruitmentbypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/recruitment/selpagerecruitmentbypage"), { data });
};


/** 查询人才招聘 */
export const jobFairsh = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/recruitment/sh"), { data });
};